import { Button } from 'antd';
import { WeaLocaleProvider } from 'ecCom';
const { getLabel } = WeaLocaleProvider;
export default class Quick extends React.Component {
    getComponent = () => {
        return null;
    }
    getTitle = () => {
        return null;
    }
    getScript = () => {
        return '';
    }
    render() {
        const { insertScript } = this.props;
        return (
            <div className="edc-excel-code-quick">
                <h4 className="title">{this.getTitle()}&nbsp;{getLabel('511726','函数配置')}</h4>
                {this.getComponent()}
                <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@3iq72x`} type="primary" onClick={() => insertScript && insertScript(this.getScript())}>{getLabel('511727','生成代码')}</Button>
            </div>
        )
    }
}